{% extends "news/base.html" %}
{% block titleBlock %}用户中心{% endblock %}
{% block scriptBlock %}
    <script src="../../static/news/js/user_base_info.js"></script>
{% endblock %}
{% block contentBlock %}
    <div class="user_menu_con fl">
        <div class="user_center_pic">
            <img src="{{ data.user.avatar_url|default("../../static/news/images/user_pic.png",True) }}" alt="用户图片">
        </div>
        <div class="user_center_name">{{ data.user.nick_name }}</div>

        <ul class="option_list">
            <li class="active"><a href="{{ url_for("users.user_base_info") }}" target="main_frame">基本资料</a></li>
            <li><a href="{{ url_for("users.user_pic_info") }}" target="main_frame">头像设置</a></li>
            <li><a href="{{ url_for("users.user_follow") }}" target="main_frame">我的关注</a></li>
            <li><a href="{{ url_for("users.user_pass_info") }}" target="main_frame">密码修改</a></li>
            <li><a href="{{ url_for("users.user_collection") }}" target="main_frame">我的收藏</a></li>
            <li><a href="{{ url_for("users.user_news_release") }}" target="main_frame">新闻发布</a></li>
            <li><a href="{{ url_for("users.user_news_list") }}" target="main_frame">新闻列表</a></li>
        </ul>
    </div>
{% endblock %}
{% block rankBlock %}
    <div class="user_con fr">
        {# iframe　是一个html标签，作用就是让一个浏览器窗口展示多个html网页 #}
        <iframe src="{{ url_for("users.user_base_info") }}" frameborder="0" name="main_frame" class="main_frame" id="main_frame"></iframe>
    </div>
{% endblock %}